import urllib2
from base import MsgApiBase

class hello():        
    def GET(self, name):
        if not name: 
            name = 'World'
        return 'webpy, Hello, ' + name + '!'

class ListMsg(MsgApiBase):
    def GET(self):
        url = r'https://api.weixin.qq.com/messages?access_token=%s'%self.access_token
        return urllib2.urlopen(url)
